/*
 * Copyright (c) 2006-2018, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2018-12-13     zylx         first version
 */

#ifndef __PWM_DMA_CONFIG_H__
#define __PWM_DMA_CONFIG_H__

#include <rtthread.h>

#ifdef __cplusplus
extern "C" {
#endif

#ifdef BSP_TIM3_CH1_USING_DMA
#ifndef PWM3_DMA_CONFIG
#define PWM3_DMA_CONFIG                             \
    {                                           \
       .name = "pwm3_dma_ch1", \
       .parent_name = "pwm3",  \
       .tim_dma_handle.Instance     = TIM3_CH1_DMA_INSTANCE,\
       .tim_dma_handle.Init.Channel = TIM3_CH1_DMA_CHANNEL,\
       .channel = TIM_CHANNEL_1, \
       .irq = TIM3_CH1_DMA_IRQ,\
    }
#endif /* PWM2_CONFIG */
#endif /* BSP_TIM3_CH1_USING_DMA */




#ifdef __cplusplus
}
#endif

#endif /* __PWM_CONFIG_H__ */
